package com.briup.srms.sms.service;

import javax.validation.constraints.NotNull;

import com.briup.srms.sms.bean.Leave;
import com.briup.srms.sms.bean.extend.LeaveExtend;
import com.jacky.base.utils.CustomerException;
import com.jacky.base.utils.PageVM;

public interface ILeaveService {

	PageVM<LeaveExtend> pageQuery(int page,int pageSize,Long studentId,Long clazzId);
	
	void saveOrUpdate(Leave leave) throws CustomerException;
	
	void deleteById(long id) throws CustomerException;

	void checkApply(String status, Long[] leaveIds, String reason);

	void cancelApply(@NotNull Long id);
}
